package com.book.service;

import com.book.pojo.Admin;
import com.book.pojo.Book;
import com.book.pojo.Reader;

import java.util.List;

public interface AdminService {
    // 管理员登录
    Admin login(Admin admin);

    // 添加管理员
    int addAdmin(Admin admin);

    // 根据ID查询管理员
    Admin findAdminByUsername(String username);

    //增加图书
    public boolean addBook(Book book);

    //删除图书
    public boolean deleteBook(int id);

    //修改图书
    public boolean updateBook(Book book);

    //查询所有图书
    List<Book> findAllBooks();

    boolean addReader(Reader reader);

    List<Reader> getAllReaders();

    boolean deleteReader(int readerId);
}
